package com.byd.base;

import com.byd.base.BaseEvent;
import com.byd.base.BaseFragment;

/** UI浜嬩欢锛屼笉閫氳繃EventBus浼犺緭锛岃�屾槸鍚屼竴涓狝ctivity涓殑鍚勪釜Fragment涔嬮棿鎴栬�
 * 呭拰Activity涔嬮棿鐨勭洿鎺ヤ紶閫� */
public class UIEvent extends BaseEvent {
	public Class<? extends BaseFragment> fragment;

	private UIEvent() {
	}

	public static UIEvent obtain() {
		return new UIEvent();
	}

	public static UIEvent obtain(int event) {
		final UIEvent e = obtain();
		e.event = event;
		return e;
	}

	public static UIEvent obtain(int event, Class<? extends BaseFragment> fragment) {
		final UIEvent e = obtain(event);
		e.fragment = fragment;
		return e;
	}
}
